import { http } from "@/utils/http";
import type { HttpResult } from "@/utils/http/types";

// 提前结束流程
export function stopFlow(params: object) {
  return http.request<HttpResult>("post", "/esflow/flow/stop", {
    data: params
  });
}

// 作废流程
export function cancelFlow(params: object) {
  return http.request<HttpResult>("post", "/esflow/flow/cancel", {
    data: params
  });
}

// 撤回或重置当前流程
export function recallReset(params: object) {
  return http.request<HttpResult>("post", "/esflow/flow/recall-reset", {
    data: params
  });
}

// 催办流程
export function remind(params: object) {
  return http.request<HttpResult>("post", "/esflow/flow/remind", {
    data: params
  });
}

// 删除流程信息
export function delFlowInfo(params: object) {
  return http.request<HttpResult>("delete", "/esflow/flow/delete/info", {
    data: params
  });
}
